package com.hzsai.entity;

/**
 * @author: hzsai
 * @date : 2020/3/19/ 1:19
 **/
public enum HttpStatus {

    OK(200, "结果正常"),
    FAILED(400, "错误"),
    UNKNOWN_URL(404, "页面未知");

    private int status;
    private String description;

    HttpStatus(int status, String description) {
        this.status = status;
        this.description = description;
    }

    public int getStatus() { return status; }

    public String getDescription() { return description; }
}
